dofile("Scripts/UI/DisableAll.lua")

do
GUI_RegisterPanel(editor_panels.tiles)
GUI_CreatePanel()
w, h = 32 * 5, 32
x, y = (window.w - w) / 2, window.h - h - 40 - 38
GUI_SetLocation(x, y, w, h)
GUI_SetColor("none")
GUI_SetFadeTime(1)
GUI_SetButtonDimensions(32, 32)
GUI_AddMiniPanel(x - 4, y - 4, w + 8, h + 8, "155, 155, 155, 155")

--GUI_AddButton(editor_panels.algorithms.SNAKE_FAST, style.norm, style.mous)
--GUI_AddButton(editor_panels.algorithms.BOX, style.norm, style.mous)
GUI_AddButton(GetImageID("grass"), "grass", "editor_test")
GUI_AddButton(GetImageID("dirt"), "dirt", "editor_test")
GUI_AddButton(GetImageID("ice"), "ice", "editor_test")
GUI_AddButton(GetImageID("snow"), "snow", "editor_test")
GUI_AddButton(GetImageID("water"), "water", "editor_test")

GUI_ActivatePanel()
end 


do
GUI_RegisterPanel(editor_panels.buttons)
GUI_CreatePanel()
w, h = 32 * 6, 32
x, y = (window.w - w) / 2, window.h - h - 40
GUI_SetLocation(x, y, w, h)
GUI_SetColor("none")
GUI_SetFadeTime(.8)
GUI_SetButtonDimensions(32, 32)
GUI_AddMiniPanel(x - 4, y - 4, w + 8, h + 8, "155, 155, 155, 155")

GUI_AddButton(editor_panels.buttonIDs.displaySelection, "b_select", "b_select")
GUI_AddButton(editor_panels.buttonIDs.buildRoom, "b_room", "b_room")
GUI_AddButton(editor_panels.buttonIDs.buildPath, "b_path", "b_path")
GUI_AddButton(editor_panels.buttonIDs.saveToLua, "b_save", "b_save")
GUI_AddButton(editor_panels.buttonIDs.moveRooms, "b_move", "b_save")
GUI_AddButton(editor_panels.buttonIDs.removeRoom, "b_delete", "b_save")
GUI_ActivatePanel()
end 


do
GUI_RegisterPanel(editor_panels.algorithmsBASE)
--GUI_ClearButtons()
GUI_CreatePanel()
w, h = 32 * 6, 32
x, y = (window.w - w) / 2, window.h - h - 40 - 38
GUI_SetLocation(x, y, w, h)

GUI_SetColor("none")
GUI_SetFadeTime(1)
GUI_SetButtonDimensions(32, 32)
GUI_AddMiniPanel(x - 4, y - 4, w + 8, h + 8, "155, 155, 155, 155")
--GUI_SetRelButDist(4, 4)
style = {}
style.norm = "editor_test"
style.mous = "editor_test_m"

-- we could add text using the GUI or just add the text to the texture
GUI_AddButton(editor_panels.algorithms.SNAKE_FAST, "b_snake_fast", style.mous)
GUI_AddButton(editor_panels.algorithms.SNAKE_FULL, "b_snake_full", style.mous)
GUI_AddButton(editor_panels.algorithms.CHISEL, "b_chisel", style.mous)
GUI_AddButton(editor_panels.algorithms.SPARSE, "b_sparse", style.mous)
GUI_AddButton(editor_panels.algorithms.BOX, "b_box", style.mous)
GUI_AddButton(editor_panels.algorithms.FOCUS_POINT, "b_focus_point", style.mous)

GUI_ActivatePanel()
end
